
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{:lang('public.login_page')} - {:lang('public.system')}</title>
    <link rel="shortcut icon" href="/static/home/images/footer.png" />
    <link rel="stylesheet" href="/static/admin/css/style.css" />
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onkeydown="on_return();">
    <div class="login-container">
    	<h1>{:lang('public.system')}</h1>
    	<div class="connect">
    		<p>{:lang('public.logo_admin')}</p>
    	</div>
    	
        <form action="" method="post">
    		<div>
    			<input  name="uname" id="uname" type="text"  class="username" placeholder="{:lang('public.uname')}" autocomplete="off"/>
    		</div>
    		<div>
    			<input id="upass" name="upass" type="password"  class="password" placeholder="{:lang('public.upass')}" oncontextmenu="return false" onpaste="return false" />
    		</div>
    		<button class="btn btn-block btn-primary btn-login" type="button" ype="button" id="sub"  onclick="check()" >{:lang('public.login')}</button>
        </form>
    </div>

    <script src="/static/admin/js/js/jquery.min.js"></script>
    <script src="/static/admin/js/js/common.js"></script>
    <!--背景图片自动更换-->
    <script src="/static/admin/js/js/supersized.3.2.7.min.js"></script>
    <script src="/static/admin/js/js/supersized-init.js"></script>
    <!--表单验证-->
    <script src="/static/admin/js/js/jquery.validate.min.js?var1.14.0"></script>
    <script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/admin/js/cookie.min.js"></script>
    <script type="text/javascript" src="/static/admin/layer/layer.js"></script>
    <script type="text/javascript" src="/static/admin/js/common.js"></script>
    <script type="text/javascript">
            $(".btn-login").click(function() {
                var uname = $('#uname').val();
                var upass = $('#upass').val();
                $.ajax({
                    type: "post",
                    data: {
                        uname:uname,
                        upass:upass,
                    },
                    url: "{:adminUrl('admin/login/login')}",
                    dataType: "json",
                    success : function(r) {
                        we_im_msg(r.data);
                        if (r.code == 200) {
                            setTimeout(function() { 
                                window.location.href = "{:adminUrl('admin/index/index')}";
                            },2000);
                        }
                    }
                });
            });
			function check() {
				var formname=document.loginForm;
			  formname.submit();
			}
			
			 function on_return(){
			 if(window.event.keyCode == 13){
			  if (document.all('sub')!=null){
			   document.all('sub').click();
			   }
			 }
 }
        </script>
    </body>
    </html>